<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/11
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>新增成功页面</title>
</head>
<!-- Bootstrap core CSS -->
<link href="${basePath}static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Optional Bootstrap Theme -->
<link href="data:text/css;charset=utf-8," data-href="${basePath}static/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
<!--jQuery需要在所有js的最前面引入-->
<script type="text/javascript" src="${basePath}static/jquery-1.12.4/jquery-1.12.4.min.js" ></script>
<%--<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>--%>
<script type="text/javascript" src="${basePath}static/bootstrap-3.3.7-dist/js/bootstrap.js"></script>

<body>
<div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>联系电话</th>
            <th>创建时间</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <%--items:是被遍历的集合；var：当前遍历的对象；varStatus：遍历过程中的属性值--%>
        <c:forEach items="${lstQueryAdmins}" var="eachBean" varStatus="s">
            <tr>
                <th scope="row">${s.index+1}</th>
                <td>${eachBean.adminname}</td>
                <td>${eachBean.adminsex}</td>
                <td>${eachBean.admintel}</td>
                <td><fmt:formatDate value="${eachBean.admincreatetime}"
                                    pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>
                <td><a href="${basePath}modifyAdminInfo?adminId=${eachBean.adminid}">修改</a></td>
                <td><a href="${basePath}deleteAdminInfo?adminId=${eachBean.adminid}" onclick="return confirm('是否删除该记录?');">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
